package com.cars.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.relational.core.mapping.Table;

/**
 * @author: caoqianfan
 * @date: 2023/12/20 14:39
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table("coffee")
public class Coffee {
    @Id
    private Long id;

    private String name;

    @Transient
    private boolean isNew = true;

}